//
//  GetAlarmClock.m
//  MicrowaveInteractionLight
//
//  Created by maple on 2016/12/26.
//  Copyright © 2016年 maple. All rights reserved.
//

#import "GetAlarmClock.h"

@implementation GetAlarmClock
{
    NSDictionary *_dic;
}

-(id)initWithDictionary:(NSDictionary *)dic{
    if (self = [super init]) {
        _dic = dic;
    }
    return self;
}

- (NSString *)requestUrl {
    return @"wblight/alarm/get_list";
}

- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodPOST;
}

- (id)requestArgument {
    NSMutableDictionary *dic=[NSMutableDictionary getPubdic];

    if (_dic[@"device_id"]) {
        [dic setObject:_dic[@"device_id"] forKey:@"device_id"];
        
    }
    
    NSString *sign=[NSString getSign:dic];
    [dic setObject:sign forKey:@"sign"];
    return dic;
}

- (NSString *)userId {
    return [[[self responseJSONObject] objectForKey:@"userId"] stringValue];
}


-(void)dealloc
{
    NSLog(@" dealloc");
}

@end
